import {formatMessage} from './intl';
import {Routes} from 'Shared/utils/routeManager';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    transferToTechnicalCase: {
        url: '/:id/transferToTechnicalCase',
        title: formatMessage({
            id: 'routes.transferToTechnicalCase',
            defaultMessage: '转技术案例'
        }),
        format: '/{0}/transferToTechnicalCase'
    },
    reply: {
        url: '/:id/reply',
        title: formatMessage({
            id: 'routes.reply',
            defaultMessage: '回复'
        }),
        format: '/{0}/reply'
    },
    reportAgain: {
        url: '/:id/reportAgain',
        title: formatMessage({
            id: 'routes.reportAgain',
            defaultMessage: '再上报'
        }),
        format: '/{0}/reportAgain'
    },
    feedback: {
        url: '/:id/feedback',
        title: formatMessage({
            id: 'routes.feedback',
            defaultMessage: '反馈'
        }),
        format: '/{0}/feedback'
    },
});
export default routes;
